package graphs;

import java.util.ArrayList;

//表示节点
public class Node {
    public int value;   //当前点的值
    public int in;  // 入度多少个线指向我
    public int out;  //出度   我向外发散了多少个线
    public ArrayList<Node> next;   //从我直接发散出去 与我直接连接的点的集合
    public ArrayList<Edge> edges;   //从我直接发散出去的边

    public Node(int value) {
        this.value = value;
        this.in = 0;
        this.out = 0;
        this.next = new ArrayList<>();
        this.edges = new ArrayList<>();
    }
}
